<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/user/common.jsp" %>
<%if(session!=null&&session.getAttribute("user")!=null){
    response.sendRedirect(basePath+"user/m/userflow.jsp");
    return;
} %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>配网数据助手-用户登录</title>
<link href="<%=basePath %>user/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=basePath %>js/jquery/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="<%=basePath %>user/js/common.js"></script>
<script type="text/javascript" src="<%=basePath %>user/js/login.js"></script>
<script type="text/javascript" src="<%=basePath %>user/js/input.js"></script>
</head>

<body>
   <div class="login_wrap">
      <div class="login">
         <div class="login_main">
            <div class="login_top"></div>
            <div class="login_center">
               <div class="login_title">
                  <span>用户登录</span>
                  <a href="<%=basePath%>web/home.jsp">返回网站主页</a>
               </div><!--login_title end-->
               <div class="login_content">
               <form  id="loginForm" action="<%=basePath %>user/login"
				method="post">
				<input type="hidden" id="contextPath" value="<%=basePath %>">
                  <div class="login_left">
                     <ul>
                     	<li style="height: 25px;line-height:25px;">
                     	<span id="errorMsgSpan" style="display:none"><span id="errorMsg" style="color: red;height: 25px;line-height:25px;"></span></span></li>
                        <li>
                           <p><img src="<%=basePath %>user/images/user_icon.png" width="22" height="22"/><b>请输入手机号码或用户名</b><input id="loginName" name="loginName" maxlength="20" type="text" class="input_txt" /></p>
                           <!-- <div class="prompt"><label></label><font>用户名输入错误</font></div> -->
                        </li>
                        <li>
                           <p><img src="<%=basePath %>user/images/psd_icon.png" width="22" height="22" /><b>请输入登录密码</b><input id="pwd" name="pwd" maxlength="20" type="password" class="input_txt"/></p>
                           <!-- <div class="prompt"><label></label><font>密码输入错误</font></div> -->
                        </li>
                        <li>
                           <p class="captcha"><b>请输入验证码</b><input style="width:130px; position:relative; left:-12px;text-indent:12px;" id="imageCode" name="imageCode" maxlength="4" type="text" class="input_txt" onkeydown="keyDown();"/></p>
                           <a href="javascript:changeImageCode();"><img  id="imageCodeImg" src="<%=basePath %>imageCode" width="100" height="40" class="captcha_code" /></a>
                           <span onclick="changeImageCode();">换一张</span>
                           <!-- <div class="prompt prompt_captcha"><label></label><font>验证码输入错误</font></div> -->
                        </li>
                        <li style="font-size:14px; color:#4f4f4f;height: 8px;">
                        <input type="checkbox" name="status" value="1" /> 记住我（2周内自动登录）
                        </li>
                        <li class="step">
                           <a href="m/forgetpassword.jsp" class="link_psw">忘记密码？</a>
                           <a href="<%=basePath %>user/register.jsp" class="link_register">账号注册</a>
                        </li>
                     </ul>
                     <a  class="login_btn"  onclick="login();">立即登录</a>
                  </div><!--login_left end-->
                  </form>
                  <div class="login_right">
                     <img src="<%=basePath %>user/images/photo.png" width="206" height="221" />
                  </div><!--login_right end-->
               </div><!--login_content end-->
            </div><!--login_center end-->
            <div class="login_down"></div>
         </div><!--login_main end-->
      </div><!--login end-->
   </div><!--login_wrap end-->
   <%@ include file="/user/foot.jsp"%>
</body>
</html>